var db = require('../libs/index');

module.exports = (sequelize, Sequelize) => {
  const Mqtt = sequelize.define("mqtt", {
    name: {
      type: Sequelize.STRING
    },
    device_id: {
      type: Sequelize.STRING
    },
    temp: {
      type: Sequelize.BOOLEAN
    },
    humi: {
      type: Sequelize.BOOLEAN
    },
    sun: {
      type: Sequelize.BOOLEAN
    },
    relaystatus: {
      type: Sequelize.BOOLEAN
    }
  });

  return Mqtt;
};